Automattic\Jetpack\Search\REST_Controller S

Total Complexity 47
Dependencies 12
Dependents 1
Total lines 395
Lines of code 240
Logical lines of code 81
Comment lines 113
Methods 17
Properties 3

Methods 17

Method Rating Maintainability Complexity Lines of code
update_settings()
A
46 11 39
activate_plan()
A
49 8 33
make_proper_response()
S
58 5 15
validate_search_settings()
S
63 5 10
register_common_rest_routes()
S
48 1 47
__construct()
S
71 3 5
register_jetpack_only_rest_routes()
S
53 1 29
register_rest_routes()
S
68 2 8
require_admin_privilege_callback()
S
64 2 10
get_blog_id()
S
79 2 3
register_wpcom_only_rest_routes()
S
82 1 3
get_search_plan()
S
76 1 4
get_settings()
S
68 1 8
get_stats()
S
76 1 4
get_search_results()
S
63 1 10
deactivate_plan()
S
69 1 8
product_pricing()
S
76 1 4